From: Florian Müllner Date: Sun, 26 Jul 2015 15:33:05 +0000 (+0200) Subject: telepathyClient: Use protocol-specific policy X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1271 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=58905bd01aa380aad574c25815ad9d10d50af425;p=gnome-shell.git telepathyClient: Use protocol-specific policy Since commit 79c04c93e4cb2, we launch Polari instead of Empathy when activating a chat notification for an IRC channel. It therefore makes sense to follow Polari's notification policy for those notifications rather than Empathy's. https://bugzilla.gnome.org/show_bug.cgi?id=752881 --- diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 3aa06e7b8..f57131975 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -303,6 +303,8 @@ const ChatSource = new Lang.Class({ }, _createPolicy: function() { + if (this._account.protocol_name == 'irc') + return new MessageTray.NotificationApplicationPolicy('org.gnome.Polari'); return new MessageTray.NotificationApplicationPolicy('empathy'); },